const { resolve } = require('path')
const { merge } = require('webpack-merge')
const baseConfig = require('./webpack.base')

const devConfig = merge(baseConfig('development'), {
  devServer: {
    static: {
      directory: resolve(__dirname, '../dist')
    },
    port: 3000,
    host: 'localhost',
    compress: true,
    hot: true,
    open: true
  }
})

module.exports = devConfig
